﻿using System.Threading.Tasks;
using Volo.Abp.Identity.Web.Navigation;
using Volo.Abp.UI.Navigation;
namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.SB.Navigation
{
    public class SBMenuContributor : IMenuContributor
    {
        public Task ConfigureMenuAsync(MenuConfigurationContext context)
        {
            if (context.Menu.Name != StandardMenus.Main)
            {
                return Task.CompletedTask;
            }

            var administrationMenu = context.Menu.GetAdministration();
            administrationMenu.CustomData = SBThemeConstant.MENU_GROUP_NAME;
            administrationMenu.GetMenuItem(IdentityMenuNames.GroupName).Icon = "fa fa-id-card";
            return Task.CompletedTask;
        }
    }
}
